home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / fddev202.arc / C.ARC / LASTCALL.H < prev    next >
Text File  |  1991-10-01  |  3KB  |  64 lines

  1. /*
  2. **  lastcall.h (FrontDoor)
  3. **
  4. **  Copyright 1991 Joaquim H. Homrighausen. All rights reserved.
  5. **
  6. **  LASTCALL.FD definitions for FrontDoor 2.00+
  7. **
  8. **  Last revision:  91-10-02
  9. **
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15.  
  16. /*
  17. **  Recent activity (statistics) definitions.
  18. */
  19. typedef struct
  20.     {
  21.     word    inbound,                                  /* Inbound mail calls */
  22.             outbound,                                /* Outbound mail calls */
  23.             humans,                                  /* Inbound BBS callers */
  24.             filesin,                                       /* Inbound files */
  25.             filesout,                                     /* Outbound files */
  26.             goodsess,                                      /* Good sessions */
  27.             badsess,                                     /* Failed sessions */
  28.             requests;                              /* Inbound file requests */
  29.     dword   date,                                   /* UNIX-style timestamp */
  30.             bytesin,                                /* Inbound (rcvd) bytes */
  31.             bytesout;                              /* Outbound (sent) bytes */
  32.     }
  33.     STATREC, *STATRECPTR;
  34.  
  35. /*
  36. **  Note that the two char[] fields are in Pascal fashion. The first byte is
  37. **  the length byte. The actual string starts at [1] and the string is NOT
  38. **  NUL terminated. In pascal they would be string[30] and string[40].
  39. */
  40. typedef struct
  41.     {
  42.     char    system_name[31],
  43.             location[41];
  44.     word    zone,net,node,point;
  45.     dword   time;                                   /* UNIX-style timestamp */
  46.     }
  47.     LASTCALL, *LASTCALLPTR;
  48.  
  49. /*
  50. **  The LASTCALL.FD file contains four records, two STATREC and two
  51. **  LASTCALL. Today's activity is moved to Yesterday's activity as soon
  52. **  as FD runs its 'past-midnight' internal event.
  53. */
  54. typedef struct
  55.     {
  56.     LASTCALL    lastin,                           /* Last inbound mail call */
  57.                 lastout;                         /* Last outbound mail call */
  58.     STATREC     today_act,                              /* Today's activity */
  59.                 yesterday_act;                      /* Yesterday's activity */
  60.     }
  61.     ACTIVITY, *ACTIVITYPTR;
  62.  
  63. /* end of file "lastcall.h" */
  64.